package com.jilujia.framework.web.json;

import java.util.ArrayList;
import java.util.List;

import org.springframework.validation.ObjectError;

public class JsonData {

	private int error = 0;
	private List<ObjectError> messages = new ArrayList<ObjectError>();

	public JsonData() {
	}

	public JsonData(int error, List<ObjectError> messages) {
		this.setError(error);
		this.setMessages(messages);
	}

	public int getError() {
		return error;
	}

	public void setError(int error) {
		this.error = error;
	}

	public List<ObjectError> getMessages() {
		return messages;
	}

	public void setMessages(List<ObjectError> messages) {
		this.messages = messages;
	}

}